package com.pengtu.gsj.service.impl.system;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.gsj.dao.base.QueryFilter;
import com.pengtu.gsj.dao.system.BannerbaseDao;
import com.pengtu.gsj.entity.app.Bannerbase;
import com.pengtu.gsj.service.system.BannerbaseService;

@Transactional
@Service
public class BannerbaseServiceImpl implements BannerbaseService {
	
	@Autowired
	private BannerbaseDao  bannerbaseDao;

	@Override
	public List<Bannerbase> getBannerbases(QueryFilter queryFilter) {
		return bannerbaseDao.find(queryFilter);
	}

	@Override
	public Bannerbase getBannerbase(String id) {
		return bannerbaseDao.get(id);
	}

	@Override
	public void saveBannerbase(Bannerbase bannerbase) {
		bannerbaseDao.save(bannerbase);
	}
}
